#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：12.全局变量需要注意的点.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-09-29 15:16
'''

num = 10
def set_num():
    global num
    num = 11
    print(num)

set_num()
print(num)


num_list = [1, 2,3]

def set_num_list():
    num_list.append(4)
    print(num_list)

set_num_list()
print(num_list)